package com.woniuxy.user.service.Impl;

import com.hc.entity.BlackList;
import com.woniuxy.user.mapper.BlackListMapper;
import com.woniuxy.user.service.BlackListService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BlackListServiceImpl implements BlackListService {
    @Resource
    private BlackListMapper blackListMapper;

    // 拉黑某个用户，添加数据
    public int insertBlackList(BlackList blackList) {
        return blackListMapper.insertIntoBlackList(blackList);
    }

    @Override
    public BlackList getByBothId(Integer userId, Integer blackUserId) {
        return blackListMapper.getByBothId(userId,blackUserId);
    }
}